{extend name="../../public/admin"}
{block name="title"}添加拨款{/block}

{block name="body"}
<div id="container">


    <div class="clearfix"></div>
    <div style="height: 40px;"></div>
    <form action="{:url('up_info',['id'=>0])}" method="post" id="form">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="form-group input-group">
            <label class="input-group-addon">{:lang('拨付金额')}</label>
            <input type="text" name="money" class="form-control" datatype="s1-10" value="{$data.money}">
        </div>
        <div class="form-group input-group select-error">
            <input type="text" name="money_img" id="url3" class="form-control" datatype="*" value="{$data.money_img}">
            <label class="input-group-addon" id="image3">{:lang('上传图片')}</label>
        </div>
        <div class="form-group text-center ">
            <button class="btn btn-info">{:lang('立即提交')}</button>
        </div>
    </form>
</div>
{/block}
{block name="js"}
<!--img-->
<link rel="stylesheet" href="__PUBLIC__/public/bian-ji-qi/themes/default/default.css"/>
<script src="__PUBLIC__/public/bian-ji-qi/kindeditor.js"></script>
<script src="__PUBLIC__/public/bian-ji-qi/lang/zh_CN.js"></script>
<!--for-->
<script src="__PUBLIC__/public/validform/Validform_v5.3.2_min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/public/validform/style.css">
<script>
    (()=>{
        $('#form').Validform({
            tiptype:4,
            ajaxPost:true,
            callback:function (da) {
                if (da == 1) {
                    window.parent.location.reload();
                }
                else{
                    layer.msg("{:lang('失败')}",{icon:2});
                }
            }
        });
        KindEditor.ready(function (K) {
            var editor = K.editor({
                allowFileManager: true
            });

            K('#image3').click(function () {
                editor.loadPlugin('image', function () {
                    editor.plugin.imageDialog({
                        showRemote: false,
                        imageUrl: K('#url3').val(),
                        clickFn: function (url, title, width, height, border, align) {
                            K('#url3').val(url);
                            editor.hideDialog();
                        }
                    });
                });
            });

        });
    })();
</script>
{/block}